.first-bar {
    height: 22px;
    background: #000000;
}
.first-bar div {
    position: relative;
    color:white;
}
.first-bar img {
    position: absolute;
    left: 0;
    top:0;
}
.first-bar div p:nth-child(2) {
    text-indent: 200px;
}
/* 搜索框 */
.search-box input,.search-box div{
    height: 36px;
    line-height: 36px;
    box-sizing: border-box;
}
.search-box input:nth-child(1){
    border: 2px solid #ff6600;
    margin-right: -10px;
}
.search-box input:nth-child(2){
    border:none;
    width: 50px;
    background-image: url(../images/bgicon.png);
}
/* 对于行内元素,默认是用文字基线对齐,
如果有的元素没有文字内容,则会出现上下不对齐的情况 
解决:设置出现问题的相邻两个元素vertical-align:top/middle/bottom
*/
.search-box input {
    vertical-align: middle;
}
.search-box div {
    width:100px;
}
.search-box div:nth-of-type(1) {

    color:white;
    text-align: right;
    background: url(../images/bgicon.png) no-repeat #ff6600;
    background-position-y: -42px;
}
.search-box div:nth-of-type(2) {
    background: #ebebeb;
    color:black;
    text-align: center;
}
.search-box form {
    margin-right: 20px;
    /* 
        font-size: 0;
        然后再单独设置子元素的font-size
    */
}
/* 导航栏 */
.nav-bar li {
    float: left;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    height: 30px;
    line-height: 30px;
    margin-right: 10px;
    font-size: 18px;
}
.nav-bar ul {
    padding-left: 350px;
    margin-top: 15px;
}
/* 二级菜单和轮播图 */
.dir {
    height:400px
}
.swiper {
    width: 1100px;
    height: 400px;
}

.dir ul {
    background: #f3f3f3;
    position: relative;
}
.dir li>p{
    width: 200px;
    height: 36px;
    line-height: 36px;
    text-indent: 25px;
    border:1px solid #f3f3f3;

}
/* li hover后的变化 */
.dir li:hover>p {
    color: #ff6600;
    border:1px solid #ff6600;
    border-right: #ffffff;
    background-color: #ffffff;
    position: relative;
    z-index: 100;
    width: 200px;
}
/* 隐藏的盒子 */
.hidden-box {
    width: 400px;
    height: 400px;
    display: none;
    position: absolute;
    border:1px solid #ff6600;
    left:200px;
    top:0;
    padding:10px;
    background-color: #ffffff;
}
.dir li:hover .hidden-box {
    display: block;
    z-index:99;
}